home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 January: Mac OS SDK / Dev.CD Jan 99 SDK1.toast / Development Kits / Installer SDK 1.2 / Upgrader 1.2.1 & Engines / Upgrader 1.2.1 / Plug-in Examples / Common Files / Editor Utilities / CFileRefEditorWindow.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-08-25  |  960 b   |  31 lines  |  [TEXT/CWIE]

  1. #pragma once
  2.  
  3. #include <UModalDialogs.h>
  4.  
  5. SInt32 DoEditFileRef( SInt16 inFileRefNum, SInt16 &inFileRefRsrcID, Boolean inSharedFileRef = false );
  6.  
  7. void GetPathFromFileRef( SInt16 inFileRefNum, SInt16 inFileRefRsrcID, Str255 outFilePathForDisplay );
  8.  
  9. class    CFileRefEditorWindow :     public StDialogHandler
  10. {
  11.  
  12. public:
  13.     enum { class_ID = 'clEd' };
  14.     
  15.     SInt16                        mFileRefNum;
  16.     SInt16                        mFileRefRsrcID;
  17.     Boolean                        mSharedFileRef;
  18.  
  19.                                 CFileRefEditorWindow( SInt16 inFileRefNum, SInt16 inPreferenceRsrcID, Boolean inSharedFileRef );
  20.     virtual                        ~CFileRefEditorWindow();
  21.     
  22.     SInt32                        DoEdit();
  23.     void                        SaveWindowToFile();
  24.     void                        LoadWindowFromFile();
  25.     
  26.     void                        GetInfoFromFSSpec( FSSpec* inFSSpec, SInt16 inDocRefNum, Boolean inFullPath, Str255 outPathStr, ResType &outFileType, ResType &outFileCreator, UInt32 &outFileCreationDate );
  27.  
  28.     void                        BuildSrcPath( FSSpec* inFSSpec, SInt16 inDocRefNum, Boolean inFullPath, Str255 outPathStr );
  29.     
  30. };
  31.